/*
 * support.c
 *
 *  Created on: Apr 8, 2012
 *      Author: brent.reamer
 */

#include "main.h"

/**
 * @brief    Hex to uint8
 *
 * @param    byte
 */
unsigned char u2h( unsigned char u )
{
    if( u>9 )
        u    += 7;
    return u+'0';
}
/**
 * @brief    uint8_t to Hex
 *
 * @param    int
 */
unsigned char h2u( unsigned char h )
{
    h    -= '0';
    if( h>9 )
        h    -= 7;
    return h;
}


